﻿<%--人员部门管理--%>
<%@ Page Language="C#"  %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>人员部门管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

    <link rel="stylesheet" type="text/css" href="../../../WebPlugin/jquery-easyui/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../../../WebPlugin/jquery-easyui/themes/icon.css"/>
	<script type="text/javascript" src="../../../WebPlugin/jquery-easyui/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="../../../WebPlugin/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../WebPlugin/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script src="../../../WebPlugin/jquery-easyui/JQueryCommon.js" type="text/javascript"></script>
    <script src="../PageJS/DeptEmployeeManager.js" type="text/javascript"></script>
</head>
<body class="easyui-layout">
<%--初始化界面--%>
<div region="center" style="overflow:hidden;"  border="false">
	<div id="tabs" class="easyui-tabs" fit="true"  style="padding:0px;">
		
		<div title="部门" iconCls="icon-reload" style="padding:0px;" fit="true" closable="false" >
			<div class="easyui-layout" fit="true" border="false">
                <div region="west" split="true" title="部门类别" style="width:400px;padding:0px;" border="false">
	                <div style="padding:0px;background:#EFEFEF;">
		                <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-reload" onclick="deptlayer_refresh()">刷新</a>
		                <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-add" onclick="deptlayer_append()">添加</a>
		                <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" onclick="deptlayer_delete()">删除</a>
	                </div>
	                <ul id="deptLayerTree" animate="true"></ul>
	            </div>	 
	            <div region="center" title="部门列表" border="false">
	                <table id="deptGrid" idField="DeptId">
	                    <thead>
			                    <tr>
				                    <th field="DeptId" width="80">编码</th>
				                    <th field="Name" width="150" >部门名称</th>
				                    <th field="DeleteBit" width="100" >是否停用</th>
			                    </tr>
	                    </thead>
	                </table>
	            </div>			
			</div>
			 
		</div>
		
		<div title="人员" iconCls="icon-reload" style="padding:0px;" fit="true" closable="false">
			 <div class="easyui-layout" fit="true">
			    <div region="center" title="人员列表">
	                <table id="employeeGrid" idField="EmpId" border="false">
	                    <thead>
			                    <tr>
				                    <th field="EMPLOYEE_ID" width="80">EmpId</th>
				                    <th field="USER_ID" width="80">UserId</th>
				                    <th field="NAME" width="100" >姓名</th>
				                    <th field="CODE" width="100" >用户名</th>
				                    <th field="SEX" width="100" >性别</th>
				                    <th field="DEPTLIST" width="200" >所在部门</th>
				                    <th field="DELETE_BIT" width="100" >人员是否删除</th>
				                    <th field="LOCK" width="100" >用户是否禁用</th>
			                    </tr>
	                    </thead>
	                </table>
	            </div>
			 </div>
		</div>
		
	</div>
	
</div>
<%--弹出窗界面--%>
<div id="dialog-deptlayer" icon="icon-save" style="background:#fafafa;padding:10px;width:400px;height:300px;">
	 
    <form id="deptlayerform" method="post">    
    <table>
        <tr>
            <td><label>父节点:</label></td>
            <td><input type="text" id="PName" readonly="readonly" value="" ></input></td>
       </tr>
		<tr>
            <td><label>名称:</label></td>
            <td><input class="easyui-validatebox" type="text" name="Name" required="true"></input></td>
       </tr>
       </table>
       <input type="hidden" id="PId" name="PId" ></input>
    </form>
</div>

<div id="dialog-dept" icon="icon-save" style="background:#fafafa;padding:10px;width:400px;height:300px;">
	 
    <form id="deptform" method="post">
    
    <table>
		<tr>
            <td><label>名称:</label></td>
            <td><input class="easyui-validatebox" type="text" name="Name" required="true" style="width:200px;"></input></td>
       </tr>
       <tr>
            <td><label>是否停用:</label></td>
            <td><input id="_DeleteBit" type="checkbox" name="_DeleteBit"/></td>
       </tr>
       </table>
       <input id="DeptId" type="hidden" name="DeptId" ></input>
       <input id="PDeptId" type="hidden" name="PDeptId" ></input>
       <input id="DeleteBit" type="hidden" name="DeleteBit" value="0"></input>
    </form>
</div>

<div id="dialog-searchEmployee" icon="icon-save" style="background:#fafafa;padding:10px;width:400px;height:300px;">  
    <table>
		<tr>
            <td><label>按部门:</label></td>
            <td><input class="easyui-combotree" type="text" id="sdeptId"  multiple="true" cascadeCheck="true" style="width:200px;" url="Controller.aspx?controller=DeptEmployeeController&method=GetComboxDept"></input></td>
       </tr>
       <tr>
            <td><label>按姓名:</label></td>
            <td><input type="text" id="sempName" style="width:200px;"></input></td>
       </tr>
       </table>   
</div>

<div id="dialog-employee" icon="icon-save" style="background:#fafafa;padding:0px;width:400px;height:400px;">
<form id="employeeform" method="post">
	<div id="employee-tabs" class="easyui-tabs" style="padding:1px;width:380px;height:310px;">
	 
    
        <div title="基本信息" iconCls="icon-reload" style="padding:2px;" fit="true" closable="false" >
         
            <table>
		    <tr>
                <td><label>姓名:</label></td>
                <td><input id="employee-name" class="easyui-validatebox" type="text" name="employee-name"  style="width:200px;" required="true"></input></td>
            </tr>
            <tr>
                <td><label>性别:</label></td>
                <td><input id="employee-sex" class="easyui-combobox"  type="text"  name="employee-sex"  style="width:200px;" valueField="Id"  textField="Name" url="Controller.aspx?controller=DeptEmployeeController&method=GetSexData" ></input></td>
            </tr>
            <tr>
                <td><label>所在部门:</label></td>
                <td><input id="employee-depts" class="easyui-combotree" name="employee-depts" style="width:200px;" multiple="true" cascadeCheck="true" url="Controller.aspx?controller=DeptEmployeeController&method=GetComboxDept" required="true"></td>
            </tr>
            <tr>
                <td><label>是否删除:</label></td>
                <td><input id="employee-delete" type="checkbox" name="employee-delete"/></td>
            </tr>
            </table>
            <input id="employee-id" type="hidden" name="employee-id" ></input>
            <input id="employeedelete" type="hidden" name="employeedelete" ></input>
        </div>
        <div title="用户" iconCls="icon-reload" style="padding:2px;" fit="true" closable="false" >
            <table>
		    <tr>
                <td><label>用户名:</label></td>
                <td><input id="user-code" class="easyui-validatebox" type="text" name="user-code" style="width:200px;" required="true"></input></td>
            </tr>
            <tr>
                <td><label>是否禁用:</label></td>
                <td><input id="user-lock" type="checkbox" name="user-lock"/></td>
            </tr>
            </table>
            <input id="user-id" type="hidden" name="user-id" ></input>
            <input id="userlock" type="hidden" name="userlock" ></input>
       </div>
   
    
    </div>
</form>
</div>

</body>
</html>


